#!/bin/bash

. ~/.bash_profile

cd /home/ulss/project/dpl-data-indexer


     ( LD_LIBRARY_PATH=. /home/ulss/install/jdk1.6.0_45/bin/java -server \
     -Xms10000m -Xmx10000m -Xmn5500m -Xss256k \
     -XX:PermSize=96m -XX:MaxPermSize=96m \
     -XX:SurvivorRatio=6 \
     -XX:+UseParNewGC  -XX:ParallelGCThreads=8 \
     -XX:MaxTenuringThreshold=100  \
     -XX:+UseConcMarkSweepGC -XX:+CMSScavengeBeforeRemark  -XX:+CMSParallelRemarkEnabled     \
     -XX:ParallelCMSThreads=8 \
     -XX:CMSInitiatingOccupancyFraction=70 \
     -XX:+UseCMSCompactAtFullCollection  -XX:CMSFullGCsBeforeCompaction=8 \
     -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError="sh stop.sh" \
     -XX:+PrintGCDateStamps -XX:+PrintGCDetails  -verbose:gc -Xloggc:./gc.log  \
     -jar dist/dpl-data-indexer.jar & )



#(LD_LIBRARY_PATH=. java -Xms6000m -Xmx6000m -Xmn4000m -Xss256k -XX:SurvivorRatio=4 -XX:+UseParallelOldGC -XX:ParallelGCThreads=10 -XX:MaxGCPauseMillis=350   -XX:+PrintGCDateStamps -XX:+PrintGCDetails  -verbose:gc -Xloggc:./gc.log  -jar dist/ulss-data-indexer.jar  &)
